package com.xunfang.bean;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @author yellow Docter
 * @date 2023 -10-10
 * @desc
 * @value 可以直接给 属性 进行赋值
 */
@Component
@Data
public class User {

    //属性的注入
    @Value("马云")
    private String username;

    @Value("54")
    private Integer age;

}
